//
//  RaffleCell.m
//  XiangCaoJiaYuan
//
//  Created by tongj on 2017/8/24.
//  Copyright © 2017年 tongj. All rights reserved.
//

#import "RaffleCell.h"

@implementation RaffleCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
-(void)setModel:(RaffleModel *)model
{
    self.createTime.text = model.create_time;
    self.endTime.text = model.end_time;
    [self.Image sd_setImageWithURL:[NSURL URLWithString:model.prize_image] placeholderImage:[UIImage imageNamed:@"抽奖记录列表_03.png"]];
    self.prizeName.text = [NSString stringWithFormat:@"%@(%d个)",model.prize_name,model.prize_num];
    self.peopkeNumber.text = [NSString stringWithFormat:@"参与人数：%d人",model.participants_num];
    
}
@end
